package com.example.demo.Mapper;

import com.example.demo.pojo.Dept;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DeptMapper {
    @Select("select * from dept")
    List<Dept> selectAllDao();

    @Delete("delete from dept where id=#{id}")
     void deleteAllDao(Integer id);
    @Insert("insert into dept values (null, #{name},#{createTime},#{updateTime})")
    void add(Dept dept);

}
